package com.service.admin.news.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.admin.news.controller.rep.NewsDetailRep;
import com.service.admin.news.controller.rep.NewsPageRep;
import com.service.admin.news.controller.req.NewsAddReq;
import com.service.admin.news.controller.req.NewsPageReq;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.News;


/**
 * 系统公告
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-12 21:59:44
 */
public interface NewsService extends IService<News> {
    void addNews(NewsAddReq newAddReq);

    void updateNews(NewsAddReq newAddReq);

    CommonPageRep<NewsPageRep> pageNews(NewsPageReq newsPageReq);

    NewsDetailRep getOneNewsDetail(Integer newsId);

    void deleteNews(Integer newsId);
}

